﻿<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:wf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"  
             x:Name="userControl" x:Class="SqlExport.View.DataViewDataGridView"
             mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300"
             DataContext="{Binding DataViewViewModel, Source={StaticResource Locator}}">
    <Grid>
        <!--<ListView
            x:Name="listView"
            VirtualizingStackPanel.IsVirtualizing="True"
            VirtualizingStackPanel.VirtualizationMode="Recycling"
            dz:GridViewSort.AutoSort="True"
            dz:VirtualListLoadingIndicator.IsAttached="True"
            ScrollViewer.IsDeferredScrollingEnabled="True"
            MinHeight="100" ItemsSource="{Binding ItemsSource}">
			<ListView.View> 
				<GridView x:Name="grdView" ColumnHeaderTemplate="{StaticResource ListViewColumnHeaderTemplate}" AllowsColumnReorder="False" />
			</ListView.View>
		</ListView>-->
        <WindowsFormsHost>
            <WindowsFormsHost.Child>
                <wf:DataGridView x:Name="grdView" VirtualMode="True" ReadOnly="True" AllowUserToAddRows="False" 
								 AllowUserToOrderColumns="False" SelectionMode="RowHeaderSelect" AutoGenerateColumns="False" 
								 AutoSizeColumnsMode="DisplayedCells" AllowUserToResizeColumns="True"/>
            </WindowsFormsHost.Child>
        </WindowsFormsHost>
    </Grid>
</UserControl>
